
// @ts-ignore
/* eslint-disable */
import { request } from '@umijs/max';


/** 查询用户数量 GET /userCount */
export async function userCountsGet(options?: { [key: string]: any }) {
  return request<API.BaseResponseCountVo_>('/v1/userCount', {
    method: 'GET',
    ...(options || {}),
  });
}


/** 查询生成的短链数量 GET /shortChainCount */
export async function shortChainCountGet(options?: { [key: string]: any }) {
    return request<API.BaseResponseCountVo_>('/v1/shortChainCount', {
      method: 'GET',
      ...(options || {}),
    });
  }
  

/** 查询用户数量变化情况 POST /userRegisterCount */
export async function userRegisterCountPost(
  body: API.UserRegisterCountRequest,
  options?: { [key: string]: any },
) {
  return request<API.BaseResponseRegisterCountVo_>('/v1/userRegisterCount', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}


/** 查询短链总访问量 GET /links/view/all */
export async function shortChainVisitGet(options?: { [key: string]: any }) {
  return request<API.BaseResponseCountVo_>('/v1/links/view/all', {
    method: 'GET',
    ...(options || {}),
  });
}
 